#include "_AFXWIN.H"

BOOL AfxWinInit(HINSTANCE hInstance,HINSTANCE hPreInstance,LPSTR lpCmdLine,int nCmdShow)
{
	if(hPreInstance!=NULL)
		_asm {int 3}

	AFX_MODULE_STATE* pModuleState = AfxGetModuleState();
	pModuleState->m_hCurrentInstanceHandle = hInstance;
	pModuleState->m_hCurrentResourceHandle = hInstance;

	CWinApp* pApp = AfxGetApp();
	if(pApp!=NULL)
	{
		pApp->m_hInstance = hInstance;
		pApp->m_hPreInstance = hInstance;
		pApp->m_lpCmdLine = lpCmdLine;
		pApp->m_nCmdShow = nCmdShow;
	}
	return TRUE;
}